<template>
	<view class="container">
		<ikz-loading :css-data="loading_css"></ikz-loading>
		<store-list ref="storeList" @loadEnd="loadEnd"></store-list>
	</view>
</template>

<script>
	import ikzLoading from '@/pages/Component/Public/Loading/loading.vue';
	import storeList from '@/pages/Component/supermarket/component/store/list.vue'
	var app = getApp();
	import Vue from 'vue'
	export default {
		components: {
			ikzLoading,
			storeList
		},
		data() {
			return {
				id: 0,
				loading_css: {
					display: 'flex'
				},
			}
		},
		onLoad(option) {
			uni.setNavigationBarTitle({
				title: option.title
			})
			this.id = option.id
			this.$refs.storeList.getStoreList(option.id)
		},
		onShareAppMessage() {
			return {
				title: app.globalData.share_info.share_title,
				path: '/pages/Component/supermarket/Program/search/list?id='+this.id,
				imageUrl: app.globalData.share_info.share_img,
			}
		},
		methods: {
			loadEnd() {
				this.loading_css.display = "none"
			}
		}
	}
</script>

<style lang="scss">
	.container {
		
	}
</style>
